package com.ruoyi.project.platform.domain;

import com.ruoyi.project.platform.agent.constant.Platform;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 机器人实例对象 r_robot_running
 * 
 * @author ruoyi
 * @date 2020-08-27
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class RRobotRunning extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 运行实例ID */
    private Long runningId;

    /** 机器人实例名称 */
    @Excel(name = "机器人实例名称")
    private String name;

    /** 策略id */
    @Excel(name = "策略id")
    private Long strategyId;

    /** 策略名字 */
    @Excel(name = "策略名字")
    private String strategyName;

    /** 策略类型 */
    @Excel(name = "策略类型")
    private Integer strategyType;

    /** 机器人类型 */
    @Excel(name = "机器人类型")
    private Integer robotType;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 用户账号 */
    @Excel(name = "用户账号")
    private String userName;

    /** 用户账号 */
    @Excel(name = "用户账号")
    private String pltKey;

    private String pltSecret;

    private String robotUrl;
    /** 运行状态，0 初始化，1在线，2离线*/ //TODO: union runningStatus
    private Integer onLineStatus;

    /** 运行状态 */
    @Excel(name = "运行状态")
    private Integer runningStatus;

    /** 运行版本 */
    @Excel(name = "运行版本")
    private String runningVersion;

    /** 容器Id */
    @Excel(name = "容器Id")
    private String containerId;

    /** 节点Id */
    @Excel(name = "节点Id")
    private String endpointId;

    /** image_tag */
    @Excel(name = "image_tag")
    private String imageTag;

    @Excel(name = "state")
    private String state;

    private String platform;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("runningId", getRunningId())
            .append("name", getName())
            .append("strategyId", getStrategyId())
            .append("strategyName", getStrategyName())
            .append("strategyType", getStrategyType())
            .append("robotType", getRobotType())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("runningStatus", getRunningStatus())
            .append("runningVersion", getRunningVersion())
            .append("containerId", getContainerId())
            .append("endpointId", getEndpointId())
            .append("imageTag", getImageTag())
            .append("state", getState())
            .toString();
    }
}









































































